package com.xr.mapper;

import com.xr.model.Users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author Zephyr.Liu
 * @create 2020/6/9 16:27
 */
@Mapper
public interface UsersMapper {


    /**
     *
     * @param name 用户名
     * @return Users
     */
    @Select("select id,`name`,password from users where `name` = #{name }")
    public Users findByName(String name);
}
